package com.lee.member.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 联合登录配置类 可在配置文件中进行覆盖重写
 * login.qq.accessToken etc...
 * @author zfl_a
 * @date 2020/4/5
 * @project login-authorization-parent
 */
@ConfigurationProperties(prefix = "login")
public class UnionLoginConfig {

    private QQUnionLoginConfig qq = new QQUnionLoginConfig();
    private WeiXinUnionLoginConfig wx = new WeiXinUnionLoginConfig();
    private String openIdKey ;
    private String publicIdKey ;
    private String userTokenPrefix ; //登录成功之后的token key
    private String unionTokenKeyPrefix; //令牌token key。包含openIdkey和publicIdKey对应值


    public QQUnionLoginConfig getQq() {
        return qq;
    }

    public void setQq(QQUnionLoginConfig qq) {
        this.qq = qq;
    }

    public WeiXinUnionLoginConfig getWx() {
        return wx;
    }

    public void setWx(WeiXinUnionLoginConfig wx) {
        this.wx = wx;
    }

    public String getOpenIdKey() {
        return openIdKey;
    }

    public void setOpenIdKey(String openIdKey) {
        this.openIdKey = openIdKey;
    }

    public String getUserTokenPrefix() {
        return userTokenPrefix;
    }

    public void setUserTokenPrefix(String userTokenPrefix) {
        this.userTokenPrefix = userTokenPrefix;
    }

    public String getPublicIdKey() {
        return publicIdKey;
    }

    public void setPublicIdKey(String publicIdKey) {
        this.publicIdKey = publicIdKey;
    }

    public String getUnionTokenKeyPrefix() {
        return unionTokenKeyPrefix;
    }

    public void setUnionTokenKeyPrefix(String unionTokenKeyPrefix) {
        this.unionTokenKeyPrefix = unionTokenKeyPrefix;
    }
}
